package java1;
public class Student extends People{
	public Teacher name;
	public Course site;
	public Student(int code,String name,char sex, Teacher t,Course c){
		super(code,name,sex); 
		this.name = t ;
	    this.site=c;
	} 
	public String toString(){
		return"学生编号:"+getCode()+"姓名:"+getName()+"性别:"+getSex()+"老师："+name.name+this.site; 
	} 
	}  